<template>
  <div class="title-box">
    <slot>
      <span class="text">{{ title }} </span>
    </slot>
  </div>
</template>
  
<script>
export default {
  name: "",
  components: {},
  props: {
    title: {
      type: String,
      default: () => {
        return null;
      }
    },
    title2: {
      type: String,
      default: () => {
        return null;
      }
    }
  },
  data() {
    return {};
  },
  created() { },
  mounted() { },
  destroyed() { },
  methods: {}
};
</script>
  
<style lang="less" scoped>
.title-box {
  clear: both;
  position: relative;
  background: url("@/components/SupermapCard/images/title-main-header-v2.png") no-repeat;
  background-size: 100% 100%;
  width: 100%;
  height: 30px;
  line-height: 30px;
  display: flex;
  align-items: center;

  .text {
    margin-left: 50px;
    display: inline-block;
    font-size: 24px;
    font-family: 'YouSheBiaoTiHei';
    font-weight: 400;
    color: #ffffff;
    margin-bottom: -10px;
  }
}
</style>
  